package com.sky.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sky.entity.OrderDetail;
import com.sky.mapper.OrderdetailMapper;
import com.sky.service.OrderdetailService;
import lombok.extern.slf4j.Slf4j;
import org.apache.xmlbeans.impl.soap.Detail;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class Orderdetaillpl extends ServiceImpl<OrderdetailMapper, OrderDetail> implements OrderdetailService {
    @Override
    public List<OrderDetail> queryorderdetail(Integer id) {
        //根据订单id查询详细订单信息
        List<OrderDetail> orderDetails = this.query().eq("order_id", id).list();
        return orderDetails;
    }
}
